<template>
    <div>
        {{666666}}
        <div id="myChart" style="width: 600px;height:400px;"></div>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    data() {
        return {

        }
    },
    methods: {
          drawLine(){
                // 基于准备好的dom，初始化echarts实例
                let myChart = this.$echarts.init(document.getElementById('myChart'));
                // 绘制图表
                myChart.setOption({
                    title: {
                        text: '000001.SZ 图表'
                    },
                    tooltip: {},
                     xAxis: {
                        data: []
                    },
                    yAxis: {},
                    series: [{
                        name: '销量',
                        type: 'line',
                        data: [5, 20, 36, 10, 10, 20]
                    }]
            })
        }
    },
    created() {

    },
    mounted(){
        this.drawLine()
    }
}
</script>

<style scoped>

</style>